package cn.wsalix.shop.status;


public enum MessEnum {
	edit("1", "修改"),waiting("2", "等待发送"),sended("3", "已发送"),delete("4", "已删除");
	private String code;
	private String title;

	MessEnum(String code, String title) {
		this.code = code;
		this.title = title;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public static MessEnum findByCode(String code) {
		for (MessEnum type : MessEnum.values()) {
			if (type.getCode().equals(code)) {
				return type;
			}
		}
		return null;
	}

}
